package 实现类;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DOme {
    public static void main(String[] args) {
        Date date=new Date();
        System.out.println(date);
        SimpleDateFormat sdf=new SimpleDateFormat("yyy-MM-dd HH:mm:ss");
        System.out.println(date);
        try{
            System.out.println(sdf.parse("2020-7-22 12:09:55"));
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
